<?php

if (! defined ( 'IN_KEKE' )) {
	exit ( 'Access Denied' );
}

if (isset ( $is_submit ) && $is_submit) {
	//var_dump($_POST);die();
	$_cache_obj->set ( $task_cache_name, $_POST, 1800 );
	$task_step1 = $_cache_obj->get ( $task_cache_name );
	

	if (isset ( $task_step1 ['ckb_pay'] ) && is_array ( $task_step1 ['ckb_pay'] )) {
		$pay_item_ids = implode ( ',', $task_step1 ['ckb_pay'] );
		if ($pay_item_ids) {
			$pay_item_obj->setWhere ( ' pay_item_id in (' . $pay_item_ids . ')' );
			$selected_pay_item_arr = $pay_item_obj->query_keke_witkey_pay_item ();
		}
		foreach ( $selected_pay_item_arr as $value ) {
			$pay_item_cash += intval ( $value ['item_cash'] );
		}
	}
	$pay_total_cash = floatval ( $zb_config ['zb_fees'] ) + $pay_item_cash + $task_step1 ['txt_prom_cash'];
	
	require_once keke_tpl_class::template ( 'task/' . $model_info ['model_dir'] . '/tpl/' . $_K ['template'] . '/confirm' );
	die ();
}
require_once keke_tpl_class::template ( 'task/' . $model_info ['model_dir'] . '/tpl/' . $_K ['template'] . '/release' );


